package sweetguy.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "角色添加DTO")
public class RoleInsertDTO implements Serializable {
    /** 角色名称 */
    @NotEmpty(message = "角色名称不能为空")
    @Schema(description = "角色名称")
    private String title;

    /** 角色描述 */
    private String info;
}
